package trash.Tmp;


public class DeprecateOverrideTest
{
    public static void main(String[] args)
    {
        oldMethod();
        System.out.println(new DeprecateOverrideTest());
        new DeprecateOverrideTest().megaMethodNotFoundInSuper();
    }

    @Deprecated
    public static void oldMethod()
    {
        System.out.println("This is really old method!");
    }

    @Override
    public String toString()
    {
        return "Hello, World!";
    }

    //@Override  Compile error, Super Class don't contains such method
    public void megaMethodNotFoundInSuper()
    {
        System.out.println("Lala");
    }
}
